﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using t_205_verk_hopur_12.Models;
using System.Web.Mvc;

namespace t_205_verk_hopur_12.Tests.Fakes
{
    class FakeDinnerData
    {
        public static List<Channel> CreateTestDinners()
        {

            List<Channel> channel = new List<Channel>();

            for (int i = 0; i < 10; i++)
            {

                Channel sampleChannel = new Channel()
                {
                    ID = i,
                    Name = "Sample Dinner",
                    OwnerID = 1,
                    Description = "Some Address",
                    Rating = 0,
                    Autocracy = false,
                    CategoryID = 1
                };


                channel.Add(sampleChannel);
            }

            return channel;
        }

        public static Channel CreateChannel()
        {
            Channel channel = new Channel();
            channel.Name = "Sample Dinner";
            channel.OwnerID = 1;
            channel.Description = "Some Address";
            channel.Rating = 0;
            channel.Autocracy = false;
            channel.CategoryID = 1;
            return channel;
        }

        public static FormCollection CreateDinnerFormCollection()
        {
            var form = new FormCollection();

            form.Add("Description", "Description");
            form.Add("Title", "New Test Dinner");
            form.Add("EventDate", "2010-02-14");
            form.Add("Address", "5 Main Street");
            form.Add("ContactPhone", "503-555-1212");
            return form;
        }

    }
}
